package com.funny.stock.trade.dao.repo;

import com.funny.stock.trade.dao.pojo.DayTradeProfitDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description  
 * @Author  pengl
 * @Date 2020-11-22
 */

@Repository
public interface DayTradeProfitRepo extends JpaRepository<DayTradeProfitDO,Long> {

    List<DayTradeProfitDO> findByComposeIdAndPlanIdAndPlanTypeAndStockCodeAndCreateId(Long composeId,Long planId,String planType,String stockCode,Long createId);
    List<DayTradeProfitDO> findByComposeIdAndPlanTypeAndCreateId(Long composeId,String planType,Long createId);

}
